<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSocketTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
//    public function up()
//    {
//        //员工的ws链接状态和对应的链接id号
//        Schema::create('employee_socket_session', function (Blueprint $table) {
//            $table->bigIncrements('id');
//            $table->string('client_id')->comment('链接编号');
//            $table->unsignedInteger('employee_id')->comment('用户id号')->nullable();
//            $table->foreign('employee_id')->references('id')->on('employees')->onDelete('set null');
//            $table->boolean('status')->comment('链接状态 0关闭中 1链接中');
//            $table->timestamps();
//        });
//    }
//    /**
//     * Reverse the migrations.
//     *
//     * @return void
//     */
//    public function down()
//    {
//        Schema::dropIfExists('employee_socket_session');
//    }
}
